package kuzha;

public class KuzhaEngineOptions implements Cloneable {
	private boolean debug = false;
	private boolean validate = true;
	
	private KuzhaEngineOptions() {
		;
	}
	private KuzhaEngineOptions(KuzhaEngineOptions opts) {
		this.debug = opts.debug;
		this.validate = opts.validate;
	}
	
	public boolean isDebug() {
		return debug;
	}
	
	public void setDebug(boolean debug) {
		this.debug = debug;
	}
	
	public boolean isValidate() {
		return validate;
	}
	public void setValidate(boolean validate) {
		this.validate = validate;
	}
	
	@Override
	public Object clone() {
		try {
			return (super.clone());
		} catch (CloneNotSupportedException e) {
			throw (new InternalError(e.getMessage()));
		}
	}
	
	public static KuzhaEngineOptions getDefaultOptions() {
		return new KuzhaEngineOptions();
	}
}
